package pannel.user;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.util.List;
import java.util.Arrays;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private String role;
    private String avatarPath;

    // 角色常量
    public static final String ROLE_ADMIN = "ADMIN";      // 管理员
    public static final String ROLE_USER = "USER";        // 普通用户

    // 所有角色列表
    public static final List<String> ROLES = Arrays.asList(
            ROLE_ADMIN,
            ROLE_USER
    );
}